package cn.xclink.kernel.mapper;

import java.util.List;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;

import tk.mybatis.mapper.provider.SpecialProvider;
import cn.xclink.common.mapper.BaseMapper;
import cn.xclink.kernel.entity.User;

public interface UserMapper extends BaseMapper<User> {
	
	@Options(useGeneratedKeys = true, keyProperty = "user_id")
    @InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
	public int insertList(List<User> recordList);
	
	public List<User> selectUser(User user);
	public User selectUserAndOrgByAccount(String account);
}